Request.HasCookie Method
Syntax
Request.HasCookie as L (CookieName as C)
Arguments
- CookieNameCharacter
Tests if a cookie exists.
Returns
- ResultLogical
Returns .t. if the cookie exists, otherwise .f.
Description
Tests if a cookie exists.
Discussion
The Request.HasCookie method checks to see if CookieName exists. If the cookie exists, HasCookie returns .t., otherwise it returns .f..
Use the Request.GetCookie Method to get the cookie.
Example
dim cookieName as c cookieName = "CustomCookie" if Request.HasCookie(cookieName) then ?"The cookie exists." + crlf() ?Request.GetCookie(cookieName) else ?"The cookie doesn't exist." + crlf() end if
See Also